Optimal. Leaf size=111 \[ -\frac {\sqrt {a+c x^2}}{a d x}-\frac {e^2 \tanh ^{-1}\left (\frac {a e-c d x}{\sqrt {c d^2+a e^2} \sqrt {a+c x^2}}\right )}{d^2 \sqrt {c d^2+a e^2}}+\frac {e \tanh ^{-1}\left (\frac {\sqrt {a+c x^2}}{\sqrt {a}}\right )}{\sqrt {a} d^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 111, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 7, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.318, Rules used = {975, 270, 272,
65, 214, 739, 212} \begin {gather*} -\frac {e^2 \tanh ^{-1}\left (\frac {a e-c d x}{\sqrt {a+c x^2} \sqrt {a e^2+c d^2}}\right )}{d^2 \sqrt {a e^2+c d^2}}+\frac {e \tanh ^{-1}\left (\frac {\sqrt {a+c x^2}}{\sqrt {a}}\right )}{\sqrt {a} d^2}-\frac {\sqrt {a+c x^2}}{a d x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 65
Rule 212
Rule 214
Rule 270
Rule 272
Rule 739
Rule 975
Rubi steps
\begin {align*} \int \frac {1}{x^2 (d+e x) \sqrt {a+c x^2}} \, dx &=\int \left (\frac {1}{d x^2 \sqrt {a+c x^2}}-\frac {e}{d^2 x \sqrt {a+c x^2}}+\frac {e^2}{d^2 (d+e x) \sqrt {a+c x^2}}\right ) \, dx\\ &=\frac {\int \frac {1}{x^2 \sqrt {a+c x^2}} \, dx}{d}-\frac {e \int \frac {1}{x \sqrt {a+c x^2}} \, dx}{d^2}+\frac {e^2 \int \frac {1}{(d+e x) \sqrt {a+c x^2}} \, dx}{d^2}\\ &=-\frac {\sqrt {a+c x^2}}{a d x}-\frac {e \text {Subst}\left (\int \frac {1}{x \sqrt {a+c x}} \, dx,x,x^2\right )}{2 d^2}-\frac {e^2 \text {Subst}\left (\int \frac {1}{c d^2+a e^2-x^2} \, dx,x,\frac {a e-c d x}{\sqrt {a+c x^2}}\right )}{d^2}\\ &=-\frac {\sqrt {a+c x^2}}{a d x}-\frac {e^2 \tanh ^{-1}\left (\frac {a e-c d x}{\sqrt {c d^2+a e^2} \sqrt {a+c x^2}}\right )}{d^2 \sqrt {c d^2+a e^2}}-\frac {e \text {Subst}\left (\int \frac {1}{-\frac {a}{c}+\frac {x^2}{c}} \, dx,x,\sqrt {a+c x^2}\right )}{c d^2}\\ &=-\frac {\sqrt {a+c x^2}}{a d x}-\frac {e^2 \tanh ^{-1}\left (\frac {a e-c d x}{\sqrt {c d^2+a e^2} \sqrt {a+c x^2}}\right )}{d^2 \sqrt {c d^2+a e^2}}+\frac {e \tanh ^{-1}\left (\frac {\sqrt {a+c x^2}}{\sqrt {a}}\right )}{\sqrt {a} d^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.34, size = 128, normalized size = 1.15 \begin {gather*} -\frac {\frac {d \sqrt {a+c x^2}}{a x}+\frac {2 e^2 \tan ^{-1}\left (\frac {\sqrt {c} (d+e x)-e \sqrt {a+c x^2}}{\sqrt {-c d^2-a e^2}}\right )}{\sqrt {-c d^2-a e^2}}+\frac {2 e \tanh ^{-1}\left (\frac {\sqrt {c} x-\sqrt {a+c x^2}}{\sqrt {a}}\right )}{\sqrt {a}}}{d^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.07, size = 180, normalized size = 1.62
method | result | size |
default | \(-\frac {e \ln \left (\frac {\frac {2 a \,e^{2}+2 c \,d^{2}}{e^{2}}-\frac {2 c d \left (x +\frac {d}{e}\right )}{e}+2 \sqrt {\frac {a \,e^{2}+c \,d^{2}}{e^{2}}}\, \sqrt {c \left (x +\frac {d}{e}\right )^{2}-\frac {2 c d \left (x +\frac {d}{e}\right )}{e}+\frac {a \,e^{2}+c \,d^{2}}{e^{2}}}}{x +\frac {d}{e}}\right )}{d^{2} \sqrt {\frac {a \,e^{2}+c \,d^{2}}{e^{2}}}}-\frac {\sqrt {c \,x^{2}+a}}{a d x}+\frac {e \ln \left (\frac {2 a +2 \sqrt {a}\, \sqrt {c \,x^{2}+a}}{x}\right )}{d^{2} \sqrt {a}}\) | \(180\) |
risch | \(-\frac {e \ln \left (\frac {\frac {2 a \,e^{2}+2 c \,d^{2}}{e^{2}}-\frac {2 c d \left (x +\frac {d}{e}\right )}{e}+2 \sqrt {\frac {a \,e^{2}+c \,d^{2}}{e^{2}}}\, \sqrt {c \left (x +\frac {d}{e}\right )^{2}-\frac {2 c d \left (x +\frac {d}{e}\right )}{e}+\frac {a \,e^{2}+c \,d^{2}}{e^{2}}}}{x +\frac {d}{e}}\right )}{d^{2} \sqrt {\frac {a \,e^{2}+c \,d^{2}}{e^{2}}}}-\frac {\sqrt {c \,x^{2}+a}}{a d x}+\frac {e \ln \left (\frac {2 a +2 \sqrt {a}\, \sqrt {c \,x^{2}+a}}{x}\right )}{d^{2} \sqrt {a}}\) | \(180\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 3.02, size = 747, normalized size = 6.73 \begin {gather*} \left [\frac {\sqrt {c d^{2} + a e^{2}} a x e^{2} \log \left (-\frac {2 \, c^{2} d^{2} x^{2} - 2 \, a c d x e + a c d^{2} + 2 \, \sqrt {c d^{2} + a e^{2}} {\left (c d x - a e\right )} \sqrt {c x^{2} + a} + {\left (a c x^{2} + 2 \, a^{2}\right )} e^{2}}{x^{2} e^{2} + 2 \, d x e + d^{2}}\right ) + {\left (c d^{2} x e + a x e^{3}\right )} \sqrt {a} \log \left (-\frac {c x^{2} + 2 \, \sqrt {c x^{2} + a} \sqrt {a} + 2 \, a}{x^{2}}\right ) - 2 \, {\left (c d^{3} + a d e^{2}\right )} \sqrt {c x^{2} + a}}{2 \, {\left (a c d^{4} x + a^{2} d^{2} x e^{2}\right )}}, \frac {2 \, \sqrt {-c d^{2} - a e^{2}} a x \arctan \left (-\frac {\sqrt {-c d^{2} - a e^{2}} {\left (c d x - a e\right )} \sqrt {c x^{2} + a}}{c^{2} d^{2} x^{2} + a c d^{2} + {\left (a c x^{2} + a^{2}\right )} e^{2}}\right ) e^{2} + {\left (c d^{2} x e + a x e^{3}\right )} \sqrt {a} \log \left (-\frac {c x^{2} + 2 \, \sqrt {c x^{2} + a} \sqrt {a} + 2 \, a}{x^{2}}\right ) - 2 \, {\left (c d^{3} + a d e^{2}\right )} \sqrt {c x^{2} + a}}{2 \, {\left (a c d^{4} x + a^{2} d^{2} x e^{2}\right )}}, \frac {\sqrt {c d^{2} + a e^{2}} a x e^{2} \log \left (-\frac {2 \, c^{2} d^{2} x^{2} - 2 \, a c d x e + a c d^{2} + 2 \, \sqrt {c d^{2} + a e^{2}} {\left (c d x - a e\right )} \sqrt {c x^{2} + a} + {\left (a c x^{2} + 2 \, a^{2}\right )} e^{2}}{x^{2} e^{2} + 2 \, d x e + d^{2}}\right ) - 2 \, {\left (c d^{2} x e + a x e^{3}\right )} \sqrt {-a} \arctan \left (\frac {\sqrt {-a}}{\sqrt {c x^{2} + a}}\right ) - 2 \, {\left (c d^{3} + a d e^{2}\right )} \sqrt {c x^{2} + a}}{2 \, {\left (a c d^{4} x + a^{2} d^{2} x e^{2}\right )}}, \frac {\sqrt {-c d^{2} - a e^{2}} a x \arctan \left (-\frac {\sqrt {-c d^{2} - a e^{2}} {\left (c d x - a e\right )} \sqrt {c x^{2} + a}}{c^{2} d^{2} x^{2} + a c d^{2} + {\left (a c x^{2} + a^{2}\right )} e^{2}}\right ) e^{2} - {\left (c d^{2} x e + a x e^{3}\right )} \sqrt {-a} \arctan \left (\frac {\sqrt {-a}}{\sqrt {c x^{2} + a}}\right ) - {\left (c d^{3} + a d e^{2}\right )} \sqrt {c x^{2} + a}}{a c d^{4} x + a^{2} d^{2} x e^{2}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{x^{2} \sqrt {a + c x^{2}} \left (d + e x\right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.45, size = 142, normalized size = 1.28 \begin {gather*} 2 \, c {\left (\frac {\arctan \left (-\frac {{\left (\sqrt {c} x - \sqrt {c x^{2} + a}\right )} e + \sqrt {c} d}{\sqrt {-c d^{2} - a e^{2}}}\right ) e^{2}}{\sqrt {-c d^{2} - a e^{2}} c d^{2}} - \frac {\arctan \left (-\frac {\sqrt {c} x - \sqrt {c x^{2} + a}}{\sqrt {-a}}\right ) e}{\sqrt {-a} c d^{2}} + \frac {1}{{\left ({\left (\sqrt {c} x - \sqrt {c x^{2} + a}\right )}^{2} - a\right )} \sqrt {c} d}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {1}{x^2\,\sqrt {c\,x^2+a}\,\left (d+e\,x\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________